<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta name="baidu-site-verification" content="code-S4egak8lxF" />
    <title th:text="${companyProfile.name}">村舍户外装备（深圳）有限公司</title>
    <meta name="keywords" th:content="${companyProfile.seoKeyword}"/>
    <meta name="description" th:content="${companyProfile.seoDescription}"/>
    <link rel="icon" href="/static/favicon.png"/>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/static/css/animate.css">
    <link rel="stylesheet" href="/static/css/jquery.fullPage.css">
    <link rel="stylesheet" href="/static/css/swiper-3.4.2.min.css">
    <link rel="stylesheet" href="/static/css/css.css">
    <link rel="stylesheet" href="/static/css/index.css">
    <style>
        .vbg {
            opacity: 1;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: url() no-repeat center center / cover;
            z-index: 999;
            animation-duration: 800ms;
            pointer-events: none;
        }
    </style>
</head>
<body data-ind="0" ontouchstart="">
<style>
    table {
        margin: 0px auto;
    }
    @media (max-width: 992px) {
        .free-consult {
            display: none;
        }
    }
</style>

<div th:replace="menu :: menu"></div>

<div class="mohead clearfix">
    <a class="logoBox" href="/" rel="noopener noreferrer">
        <img th:src="${companyProfile.logo}" alt="">
    </a>
    <div class="menu">
        <span></span>
        <span></span>
        <span></span>
    </div>
</div>
<div class="maskout">
    <img src="/static/picture/close.png">
</div>
<div th:replace="m-menu :: m-menu"></div>
<div class="leg"></div>
<div class="wow fadeOut vbg" data-wow-delay="1000ms"></div>
<div id="fullpage" style="opacity:0">

    <div th:each="b: ${banners}" th:if="${b.id < 4}" th:class="${b.type == 1 ? 'ind_a' : 'ind_b'} + ' section'"
         th:style="'background: url(' + ${b.type == 1 and b.url.indexOf('.mp4') != -1 ? '' : b.url} + ') no-repeat center center / cover;'">
        <div class="video-mc" th:if="${b.type == 1 and b.url.indexOf('.mp4') != -1}">
            <video class="pcbanner" th:src="${b.url}" autoplay="" muted="" loop=""></video>
        </div>
        <div class="indiv">
            <div class="title" th:text="${b.title}"></div>
            <div class="text" th:text="${b.description}"></div>
            <div class="btn-box" th:if="${b.id == 1}">
                <a href="/companyProfile" rel="noopener noreferrer" class="btn lt-btn">公司介绍</a>
                <a th:href="'tencent://message/?uin=' + ${companyProfile.qq} + '&Site=在线QQ&Menu=yes'" rel="noopener noreferrer" class="btn rt-btn zx free-consult">免费咨询</a>
            </div>
            <div class="btn-box" th:if="${b.id == 2}">
                <a href="/service" rel="noopener noreferrer" class="btn lt-btn">服务保障</a>
                <a th:href="'tencent://message/?uin=' + ${companyProfile.qq} + '&Site=在线QQ&Menu=yes'" rel="noopener noreferrer" class="btn rt-btn zx free-consult">免费咨询</a>
            </div>
            <div class="btn-box" th:if="${b.id == 3}">
                <a href="/products" rel="noopener noreferrer" class="btn lt-btn">产品中心</a>
                <a th:href="'tencent://message/?uin=' + ${companyProfile.qq} + '&Site=在线QQ&Menu=yes'" rel="noopener noreferrer" class="btn rt-btn zx free-consult">免费咨询</a>
            </div>
        </div>
    </div>

    <div class="ind_d section" th:style="'background: url(' + ${banner4 != null ? banner4.url : '/static/band.jpg'} + ') no-repeat center center / cover;'">
        <div class="wrap">
            <div class="indivs">
                <div class="title" th:text="${banner4.title}"></div>
                <div class="te" th:text="${banner4.description}"></div>
                <a href="/cooperativeCustomers" rel="noopener noreferrer" block="" class="more-btn">查看更多</a>
                <div class="swiper-box clearfix">
                    <div class="sbox">
                        <div class="swiper-container" id="partnerSwiper">
                            <div class="swiper-wrapper">
                                <div class="swiper-slide" th:each="c: ${coperativeCustomers}">
                                    <img th:src="${c.logo}" th:alt="${c.name}">
                                </div>

                            </div>
                        </div>
                        <div class="control-box">
                            <div class="box clearfix">
                                <div class="btn prev_partnerSwiper">
                                    <img src="./static/picture/prev_jt_01.png" alt="">
                                </div>
                                <div class="btn next_partnerSwiper">
                                    <img src="./static/picture/next_jt_01.png" alt="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="ind_e section" th:style="'background: url(' + ${banner5 != null ? banner5.url : '/static/bane.jpg'} + ') no-repeat center center / cover;'">
        <div class="wrap">
            <div class="indivs">
                <div class="title">新闻资讯</div>
                <div class="swiper-box">
                    <div class="btn prev_news">
                        <img src="./static/picture/prev_jt_01.png" alt="">
                    </div>
                    <div class="btn next_news">
                        <img src="./static/picture/next_jt_01.png" alt="">
                    </div>
                    <div class="swiper-container" id="news">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide hoverbtn" th:each="n: ${news}">
                                <a block="" th:href="'/news_detail_' + ${n.id}" rel="noopener noreferrer" th:title="${n.title}" class="imgbox"><img th:src="${n.img}" alt=""></a>
                                <a class="text-box" block="" th:href="'/news_detail_' + ${n.id}" rel="noopener noreferrer" th:title="${n.title}">
                                    <div class="tl" th:text="${n.title}"></div>
                                    <div class="te over" th:text="${n.description}"></div>
                                    <div class="jt-box clearfix">
                                        <div class="date"></div>
                                        <div class="jt">
                                            <img src="./static/picture/more_01.png" class="nor" alt="">
                                            <img src="./static/picture/more_02.png" class="act" alt="">
                                        </div>
                                    </div>
                                </a>
                            </div>

                        </div>
                    </div>
                    <div class="swiper-pagination mobanner" id="newsSP"></div>
                </div>
                <a href="/news" rel="noopener noreferrer" block="" class="pub-btn">查看更多</a>
            </div>
        </div>

    </div>

    <div id="footer" class="section footer">
        <div th:replace="footer :: footer"></div>
    </div>
</div>
</body>
<script src="./static/js/swiper-3.4.2.min.js"></script>
<script src="./static/js/jquery-1.11.3.min.js"></script>
<script src="./static/js/jquery.fullPage.min.js"></script>
<script src="./static/js/wow.min.js"></script>
<script src="./static/js/common.js"></script>
<script>
    $(function () {
        if (winW() > 768) {
            creatFullPage();
            var tm = null;
            var vid = document.getElementsByTagName("video")[0];
            vid.addEventListener("play", function () {
                clearInterval(tm);
            })
            tm = setInterval(function () {
                console.log(1231)
                vid.play();
            }, 400)

        }
        setTimeout(function () {
            $("#fullpage").css("opacity", 1)
        }, 400)
        calcInd_width();
        var partnerSwipers = creatSwiper("#partnerSwiper", {
            slidesPerView: 3,
            slidesPerColumn: 3,
            spaceBetween: 50,
            breakpoints: {
                1366: {
                    spaceBetween: 25
                },
                768: {
                    slidesPerView: 2,
                    slidesPerGroup: 2,
                    slidesPerColumn: 3,
                    spaceBetween: 20
                }
            }
        })

        var news = creatSwiper("#news", {
            loop: true,
            slidesPerView: 3,
            slidesPerGroup: 3,
            spaceBetween: 25,
            breakpoints: {
                768: {
                    slidesPerView: 1,
                    slidesPerGroup: 1
                }
            }
        })
        hidden()
    })
    var bl = 1920 / 950;

    function calcInd_width() {
        $(".ind_d .bgimg").css("width", $(".ind_d .bgimg .bg").width() + 'px');

        // 宽度:100%;height:auto;
        if (window.innerWidth / window.innerHeight > bl) {
            $(".ind_d .bgimg").addClass('bl1');
            $(".ind_d .bgimg").css("height", (window.innerWidth / bl) + 'px');
        } else {
            $(".ind_d .bgimg").addClass('bl2');
            $(".ind_d .bgimg").css("width", (window.innerHeight * bl) + 'px');
        }
    }
</script>
</html>